package com.supplychainapi.param;


import com.github.pagehelper.PageInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel("pc接口返回list")
public class PcList<T> {
    @ApiModelProperty("接口id")
    String fsFinderId;
    @ApiModelProperty("标题")
    List<ColTitle> colTitle;
    @ApiModelProperty("内容")
    private T colContent;
    @ApiModelProperty("分页信息")
    PageInfo pageInfo;

    public PcList() {
    }

    public static final <TT> PcList buildList(String fsFinderId, TT data) {
        return new PcList(fsFinderId, null, data, null);
    }

    public static final <TT> PcList buildList(String fsFinderId, List<ColTitle> colTitles, TT data, PageInfo pageInfo) {
        return new PcList(fsFinderId, colTitles, data, pageInfo);
    }



    public PcList(String fsFinderId, T colContent) {
        this.fsFinderId = fsFinderId;
        this.colContent = colContent;
    }

    public PcList(String fsFinderId, List<ColTitle> colTitle, T colContent, PageInfo page_info) {
        this.fsFinderId = fsFinderId;
        this.colTitle = colTitle;
        this.colContent = colContent;
        this.pageInfo = page_info;
    }

    public PcList(T colContent) {
        this.colContent = colContent;
    }

    public T getColContent() {
        return colContent;
    }

    public void setColContent(T colContent) {
        this.colContent = colContent;
    }

    public String getFsFinderId() {
        return fsFinderId;
    }

    public void setFsFinderId(String fsFinderId) {
        this.fsFinderId = fsFinderId;
    }

    public List<ColTitle> getColTitle() {
        return colTitle;
    }

    public void setColTitle(List<ColTitle> colTitle) {
        this.colTitle = colTitle;
    }


    public PageInfo getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo pageInfo) {
        this.pageInfo = pageInfo;
    }
}
